<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  	<%@ include file="/jspf/public.jspf" %>
  </head>
  
  <body>     
  	   此页面是管理员(查询所有)查询页面
  	 <form action="account_query.action" method="get">
  	    <input type="submit" value="给我搜" /> 
  	 </form>
  	 <c:if test="${not empty requestScope.accountList}">
	  	 <table border="1" style="width: 600px;">
	  	 	<tr>
	  	 		<td>编号</td>
	  	 		<td>登陆名</td>
	  	 		<td>真实姓名</td>
	  	 		<td>更新</td>
	  	 		<td>授予角色</td>
	  	 		<td>删除</td>
	  	 	</tr>
	  	 		<c:forEach items="${requestScope.accountList}" var="account" varStatus="num">
		  	 		<tr>
			  	 		<td>${num.count}</td>
			  	 		<td><c:out value="${account.login}" default="　" /></td>
			  	 		<td><c:out value="${account.name}" default="　" /></td>
			  	 		<td><a href="${shop}/account_getById.action?id=${account.id}">更新</a></td>
			  	 		<td><a href="${shop}/account_getFetchRid.action?id=${account.id}">授予角色</a></td>
			  	 		<td><a href="${shop}/account_delete.action?id=${account.id}">删除</a></td>
		  	 		</tr>
		  	 	</c:forEach>
	  	 </table>
  	 </c:if>
  </body>
</html>
